package com.ophiux.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ophiux.product.model.entity.Product;
import org.apache.ibatis.annotations.Param;

public interface ProductMapper extends BaseMapper<Product> {

    /**
     * 修改库存
     * @param stockNum 	库存数量
     * @return
     */
    int updateStock(@Param("stockNum") Integer stockNum, @Param("productId") Integer productId);
    int addStock(@Param("stockNum") Integer stockNum, @Param("productId") Integer productId);
}
